﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuestionnaireSubjectList.aspx.cs"
    Inherits="ZX.WebApp.TR.QuestionnaireSubjectList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}
        /* Table样式 */
        .tableContent
        {
            width:100%;
            border-collapse: collapse;
        }
        .tableContent th
        {
            width: 15%;
            font-weight:normal;
            border: solid 1px #D4DBE2;
            background-color:#F2F8FF;
            white-space: nowrap;
            line-height:20px;
            text-align:right;
        }
        .tableContent td
        {
            border: solid 1px #D4DBE2;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%" class="tableContent">
            <tr>
                <td align="right" style="width:120px">
                    问卷题目：
                </td>
                <td>
                    <asp:Label ID="lblName" runat="server"></asp:Label>
                </td>
                <td align="right" style="width:120px">
                    题目总数：
                </td>
                <td>
                    <asp:Label ID="lblSum" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width:120px">
                    问卷目的：
                </td>
                <td>
                    <asp:Label ID="lblQAim" runat="server"></asp:Label>
                </td>
                <td align="right" style="width:120px">
                    问卷总分数：
                </td>
                <td>
                    <asp:Label ID="lblPointSum" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td colspan="4">
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red" 
                        Text="该问卷中不存在题目,请选择题目!" Visible="false"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:Repeater ID="rpList" runat="server">
            <HeaderTemplate>
                <table style="width: 100%" class="tableContent">
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="right" style="width:120px">
                        <%#Eval("Sequence")%>、(<%#Eval("SubjectPoint") + "分"%>)
                    </td>
                    <td>
                        <%#Eval("SubjectName") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("SubjectContent") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        参考答案：
                    </td>
                    <td>
                        <%#Eval("RefAnswer")%>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        您的答案：
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Width="260"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <table style="width: 100%" class="tableContent">
            <tr>
                <td>&nbsp;</td>
                <td colspan="3">
                    <asp:Button ID="Button1" runat="server" Text="打印" />
                    </td>
            </tr>
        </table>
    </div>
    </form>
</body>
<script type="text/javascript">
    function Save() {  //应实现打印按钮事件
        parent.closeWin();
    }
</script>
</html>
